{! extends name="home/base" !}


{! block name="content" !}

<style type="text/css">
	.list-content {
		width: 100%;
		letter-spacing: 0em;
		background-color: white;
	}
	.list-content>.post {
		padding: 10px 20px;
		border-bottom: 1px solid rgb(243,243,243);
	}
	.footer {
		letter-spacing: 0;
	}
</style>
<div class="list-content">

{! for $list as $key => $post!}
	<section class="post">
		<header class="post-header">

		    <h2 class="post-title">{=$post['title']}</h2>

		    <p class="post-meta">
		        作者: <a class="post-author" href="#">{=$post['author']}</a> &nbsp; &nbsp;
		        标签: 
{! for $post['tags_a'] as $idx => $tags !}
<a class="post-category post-category-js" href="/post_search?tags={=$tags['tid']}">{=$tags['name']}</a>
{! endfor !}
		    </p>
		</header>

		<div class="post-description">
			<div>{=$post['html']}</div>
			<p><a href="/post/{=$post['id']}">继续阅读 &gt;&gt;&gt;</a></p>
		</div>
	</section>
{! endfor !}

</div>


<div class="footer">
	{=$pagination}
</div>

{! endblock !}